#!/usr/bin/python
# encoding: utf-8
'''
@File    :   code.py
@Time    :   2020/03/11 21:54:19
@Author  :   fangkaijin 
@Version :   1.0
@Contact :   fangkaijin@gmail.com
@License :   杭州移动互联
@Desc    :   None
'''

# 导入库包

import sys, os
import time
import zipfile

#要备份的文件列表
files = ['/Users/fangkaijin/Downloads/述职报告-方开金-技术部.ppt'
    , '/Users/fangkaijin/Downloads/述职报告-方开金-技术部.key'
    , '/Users/fangkaijin/Downloads/年度述职模板-技术部.pptx']

#备份目录
baukupDir = '/Users/fangkaijin/Downloads/'

#备份文件
target = baukupDir + time.strftime('%Y%m%d%H%M%S')+'.zip'
print(target)

zipfile = zipfile.ZipFile(target, 'w')
for file in files:
    zipfile.write(file)
zipfile.close()





